package com.whh.business.entry.bbb;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.whh.parseData.parseXml.anno.Attribute;
import com.whh.parseData.parseXml.anno.Element;
import com.whh.parseData.parseXml.appoint.EntryBaseInterface;


@Element(name = "国家", layer = 1, fileType = "bbb")
@Data
@NoArgsConstructor
public class Book implements EntryBaseInterface {

    private Long id;

    @Element(name = "name")
    private String name;

    @Element(name = "author")
    private String author;

    @Element(name = "year")
    private String year;

    private Double price;

    @Attribute(name = "id")
    public void setId(String id) {
        this.id = Long.valueOf(id);
    }

    @Element(name = "price")
    public void setPrice(String price) {
        this.price = Double.valueOf(price);
    }

}
